package com.qfedu.ioc.servlet;

import com.qfedu.ioc.service.ProductService;
import com.qfedu.ioc.service.impl.ProductServiceImpl;

/**
 * @author:zhengyilong
 * @email:1797344574@qq.com
 * @phone:13479394730
 * @desc:
 * @DateTime:2022/5/2 19:09
 **/
public class TestServlet {

    private ProductService productService;
    public void setProductService(ProductService productService) {
        this.productService = productService;
    }

    public void doGet(){
        doPost();
    }
    public void doPost(){
        productService.listProducts();
    }

}

